package com.guangyunl.l_abstract;

public class Test12 {
    public static void main(String[] args) {
        Teacher teacher = new Teacher("张三", 23);
        System.out.println("teacher.getName() + teacher.getAge() = " + teacher.getName() + teacher.getAge());
        teacher.work();
    }
}
/*
teacher.getName() + teacher.getAge() = 张三23
重写父类工作方法==>教师在工作
 */